﻿@{
    ViewBag.Title = "Info";
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>丁丁图书商城-用户中心</title>
    <link href="~/css/main.css" rel="stylesheet" />
    <link href="~/css/reset.css" rel="stylesheet" />
    <style>
        .fr a {
            font-weight: bold;
        }
    </style>
</head>
<body style="background: url(/img/背景.jpg)  no-repeat fixed center; background-size: 100%;">
    <div class="header_con">
        <div class="header">
            <div class="welcome fl">欢迎来到丁丁图书商城</div>
            <div class="fr">
                <div class="login_btn fl">
                    @if (Session["username"] == null)
                    {
                        <a href="/Login/Login">登录</a>
                        <a href="/Login/Register">注册</a>
                    }
                    else
                    {
                        if ((int)Session["usertype"] == 1)
                        {
                        <a href="/Info/Info">欢迎您： @Session["username"]</a>
                        }
                        else
                        {
                        <a href="/Admin/Home">欢迎您： @Session["username"]</a>
                        }
                        <a href="/Login/Login">重新登录</a>
                    }
                </div>
                <div class="user_link fl">
                    <span>|</span>
                    <a href="/Info/Info">用户中心</a>
                    <span>|</span>
                    <a href="/Cart/Cart">我的购物车</a>
                    <span>|</span>
                    <a href="/Order/Order">我的订单</a>
                </div>
            </div>
        </div>
    </div>

    <div class="search_bar clearfix">
        <a href="/Home/Index" class="logo fl">
            <img src="~/images/logo.png"></a>
        <div class="sub_page_name fl">|&nbsp;&nbsp;&nbsp;&nbsp;用户中心</div>
        <div class="search_con fr">
            <form method="post" action="/List/List">
                <input type="text" name="sou" class="input_text fl" id="txtSearch" />
                <input type="submit" value="搜索" class="input_btn fr" />
            </form>
        </div>
    </div>
    <div class="navbar_con">
    </div>
    <div class="main_con clearfix">
        <div class="left_menu_con clearfix">
            <h3>用户中心</h3>
            <ul>
                <li><a href="/Info/Info" class="active">· 收藏夹</a></li>
                <li><a href="/Order/Order">· 我的订单</a></li>
                <li><a href="/Mybook/Index">· 我的书籍</a></li>
            </ul>
        </div>
        <div class="right_content clearfix">
            <div class="info_con clearfix">
                <h3 class="common_title2">你的收藏</h3>
                <ul class="goods_type_list clearfix">
                    @foreach (var a in ViewBag.books)
                    {
                        <li>
                            <a href="/Detail/Detail/@a.ID">
                                <img src="~/img/@a.Pic"></a>
                            <h4><a href="/Detail/Detail/@a.ID">@a.bookname</a></h4>
                            <div class="operate">
                                <span class="prize"><a href="/Detail/delect_shou/@a.ID">删除收藏</a></span>
                            </div>
                        </li>
                    }
                </ul>
            </div>
        </div>
    </div>



    <div class="footer">
        <div class="foot_link">
            <a href="#">关于我们</a>
            <span>|</span>
            <a href="#">联系我们</a>
            <span>|</span>
            <a href="#">招聘人才</a>
            <span>|</span>
            <a href="#">友情链接</a>
        </div>
        <p>CopyRight © 2016 北京天天生鲜信息技术有限公司 All Rights Reserved</p>
        <p>电话：010-****888    京ICP备*******8号</p>
    </div>

</body>
</html>
